import request from '@/utils/request'

const api_prefix = '/admin/hardware/data'

export default {

  /**
   * 批量删除设备数据
   *
   * @param idList
   * @returns {*}
   */
  batchDeleteEquipmentData(idList) {
    return request(({
      url: `${api_prefix}/delete/batch`,
      method: 'post',
      data: idList
    }))
  },

  /**
   * 获取菜单列表
   *
   * @returns {*}
   */
  listEquipmentDataByPage(equipmentDataQueryRequest) {
    return request(({
      url: `${api_prefix}/list/page`,
      method: 'post',
      data: equipmentDataQueryRequest
    }))
  },

  echartsData(queryParams) {
    return request(({
      url: `${api_prefix}/form`,
      method: 'get',
      params: queryParams
    }))
  }
}
